'use strict';
module.exports = (app)=>{
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    const ConfigSchema = new Schema({
        name: {
            type: String,
            required:true,
            unique:true
          },
        desc:{
            type:String,
            default:""
        },
        content:{
            type:Object,
            default:{}
        }
    });

    return mongoose.model('Config', ConfigSchema);
}